package com.tm;

public class Main {
    public static void main(String[] args) {

        System.out.println("Hello world!");

        int age=23;
        System.out.println(age);

        double socre=90.3;
        System.out.println(socre);

        //3.使用变量的好处,便于扩展和维护
        int number=88;
        System.out.println(number);
        System.out.println(number);
        System.out.println(number);
        System.out.println(number);

      //4.变量的特点，里面装的数据可以被替换
         int age1=5;
         System.out.println(age1);
         //赋值 从右往左赋值
         age1=6;
         System.out.println(age1);
         //6+1=7 从右往左赋值
         age1 = age1 + 1;
         System.out.println(age1);


         //需求:钱包有9.5元 收到了10元红包 又发出去5元红包 请输出各阶段钱包情况
         double money=9.5;
        System.out.println(money);

         money = money + 10;
        System.out.println(money);

         money = money - 5;
        System.out.println(money);
    }
}